class Painting < ActiveRecord::Base
  #uso de attr_accessible para cargar images
  attr_accessible :gallery_id, :name, :image, :remote_image_url
  belongs_to :gallery
  mount_uploader :image, ImageUploader
  validates_length_of :name, :maximum =>28
end
